USE [ERP_MOVIL]
GO

/****** Object:  Table [dbo].[RUT_FRECUENCIA_ANUAL]    Script Date: 4/8/2015 12:53:49 AM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[RUT_FRECUENCIA_ANUAL](
	[fra_id] [int] NOT NULL IDENTITY(1,1),
	[fra_repetir] [int] NULL,
	[fra_mes] [int] NULL,
	[fra_dia] [int] NULL,
	[fra_frecuencia] [nvarchar](50) NULL,
	[fra_dia_frecuencia] [nvarchar](50) NULL,
	[fra_mes_frecuencia] [nvarchar](50) NULL,
	[fra_inicio] [datetime] NULL,
	[fra_fin] [datetime] NULL,
	[fra_fin_rep] [int] NULL,
	[fra_sin_fin] [bit] NULL,
	[loc_id] [int] NULL,
 CONSTRAINT [PK_FRECUENCIA_ANUAL] PRIMARY KEY CLUSTERED 
(
	[fra_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[RUT_FRECUENCIA_ANUAL]  WITH CHECK ADD  CONSTRAINT [FK_FRECUENCIA_ANUAL_LOCAL] FOREIGN KEY([fra_id])
REFERENCES [dbo].[RUT_LOCAL] ([loc_id])
GO

ALTER TABLE [dbo].[RUT_FRECUENCIA_ANUAL] CHECK CONSTRAINT [FK_FRECUENCIA_ANUAL_LOCAL]
GO


